import axios from 'axios'
export function request(config) {
    const instance = axios.create({
        baseURL:'http://www.zydz.icu:3000/api/zyblog/',
        withCredentials: true // 允许携带cookie
    });
    instance.interceptors.request.use(config => {
        config.headers.Authorization = sessionStorage.getItem('session');
        return config;
    });
    return instance(config);
}
